<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<c:import url="commonStat.jsp" />
<table class="cntable table table-bordered dataTable table-employee ">
	<thead>
		<tr>
			<th style="width:50px">序号</th>			
			<th style="width:80px">采购单号</th>
			<th style="width:60px">供应商</th>
			<th style="width:50px">商品编码</th>
			<th style="width:50px">商品名称</th>
			<th style="width:60px">商品规格</th>
			<th style="width:60px">采购数量</th>
			<th style="width:60px">单位</th>
			<th style="width:60px">采购价</th>
			<th style="width:60px">小计</th>
			<th style="width:60px">采购时间</th>
		</tr>
	</thead>
	<tbody>
	<c:forEach var="purchaseCollocation" items="${purchaseCollocations}" varStatus="status">
		<tr style="height:45px" data-id="${purchaseCollocation.id}" >
			<td>${status.index+1 }</td>
			<td>${purchaseCollocation.purchaseNo }</td>
			<td>${purchaseCollocation.supplierName }</td>
			<td>${purchaseCollocation.collocation.collocationNo }</td>
			<td>${purchaseCollocation.cargo.cargoName }</td>
			<td>${purchaseCollocation.collocation.propertyNameOne }*${purchaseCollocation.collocation.propertyNameTwo }</td>
			<td >${purchaseCollocation.purchaseNumber}</td>
			<td>
				${purchaseCollocation.cargo.unit}
			</td>
			<td >
				${purchaseCollocation.purchasePrice }
			</td>
			<td>${purchaseCollocation.purchasePrice*purchaseCollocation.purchaseNumber }</td>
			<td>
				<fmt:formatDate value="${purchaseCollocation.createDate}" type="date" dateStyle="default" pattern="YYYY-MM-dd HH:mm"/>
			</td>
		</tr>
		</c:forEach>
	</tbody>
	<tfoot >
		<tr>
			<th class="pager-th">
				<%@ include file="/WEB-INF/views/shared/master/pager.jsp"%>
			</th>
		</tr>
	</tfoot>
</table>